package com.atguigu.yygh;

import com.atguigu.yygh.model.hosp.HospitalSet;
import com.atguigu.yygh.order.mapper.HospitalSetMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.PropertySource;

import java.util.List;

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients

@PropertySource("classpath:application.properties")
public class ServiceHospApplication implements CommandLineRunner {
    public static void main(String[] args) {
        SpringApplication.run(ServiceHospApplication.class, args);
    }
    @Autowired
    HospitalSetMapper hospitalSetMapper;
    @Override
    public void run(String... args) throws Exception {
//        List<Dict> dicts = dictMapper.selectList(null);
//        System.out.println(dicts);
//        List<HospitalSet> hospitalSets = hospitalSetMapper.selectAll();
//        System.out.println(hospitalSets);
    }
}